package com.ellricky.baselib.widget;

import android.app.Activity;
import android.view.View;

import com.bigkoo.convenientbanner.holder.CBViewHolderCreator;
import com.bigkoo.convenientbanner.holder.Holder;
import com.ellricky.baselib.R;

/**
 * Created by Sai on 15/8/4.
 * 网络图片加载例子
 */
public class NetWorkImageHolder implements CBViewHolderCreator {

    private Activity activity;

    public NetWorkImageHolder(Activity activity) {
        this.activity = activity;
    }

    @Override
    public Holder createHolder(View itemView) {
        return new NetWorkImageHolderView(activity,itemView);
    }

    @Override
    public int getLayoutId() {
        return R.layout.base_cb_item_image;
    }
}
